"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __importDefault(require("fs"));
function writeJson(path, json) {
    try {
        fs_1.default.writeFileSync(path, JSON.stringify(json, null, 4));
        return true;
    }
    catch (e) {
        console.log('工具库 writeJson 写入 json 文件失败', e);
        return false;
    }
}
exports.default = writeJson;
